/**
* 设备详情 操作记录
*/ 
<template>
  <div class="main">
    <el-button type="primary">增加备注</el-button>
    <el-table size="small" :data="listData"  highlight-current-row v-loading="loading" border element-loading-text="拼命加载中" style="width: 100%;">
        <el-table-column align="center"  prop="SN" label="设备号" width="" show-overflow-tooltip>
        </el-table-column>
        <el-table-column align="center" prop="type" label="操作类型" width="" show-overflow-tooltip>
        </el-table-column>
        <el-table-column align="center" prop="data" label="原数据" width="" show-overflow-tooltip>
        </el-table-column>
        <el-table-column align="center" prop="UpdateData" label="变更后数据" width="" show-overflow-tooltip>
        </el-table-column>
        <el-table-column align="center" prop="remark" label="备注信息" width="" show-overflow-tooltip>
        </el-table-column>
        <el-table-column align="center" prop="Operator" label="操作人" width="" show-overflow-tooltip>
        </el-table-column>
        <el-table-column align="center" prop="CreatedTime" label="创建时间" width="" show-overflow-tooltip>
        </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
    name:'operate',
    data() {
        return {
            loading: false,
            listData:[],
        };
    },
    methods: {
        getdata(){
           let res = {
                code: 0,
                msg: null,
                count: 23,
                data:[
                    {
                        SN:'56132044000070',
                        type:'下发设备关机',
                        data:'WIFI名称：12345678 , 密码：12345678',
                        UpdateData:'WIFI名称：JH-000 , 密码：12345678',
                        remark:'修改WIFI',
                        Operator:'xukang',
                        CreatedTime:'2023-10-19 21:11:56',
                    },
                    {
                        SN:'56132044000070',
                        type:'下发设备关机',
                        data:'WIFI名称：12345678 , 密码：12345678',
                        UpdateData:'WIFI名称：JH-000 , 密码：12345678',
                        remark:'修改WIFI',
                        Operator:'xukang',
                        CreatedTime:'2023-10-19 21:11:56',
                    },
                    {
                        SN:'56132044000070',
                        type:'下发设备关机',
                        data:'WIFI名称：12345678 , 密码：12345678',
                        UpdateData:'WIFI名称：JH-000 , 密码：12345678',
                        remark:'修改WIFI',
                        Operator:'xukang',
                        CreatedTime:'2023-10-19 21:11:56',
                    },
                ]
            }
            this.listData =  res.data;
        }
    },
    mounted () {
        this.getdata();
    }
}
</script>

<style lang="scss" scoped>
    .main{
        padding-left: 10px;
        .el-button{
            margin-bottom: 10px;
        }
    }
</style>